﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterNhanSuTienLuong.Master" Inherits="System.Web.Mvc.ViewPage<DTTB.MV2.QUANLYNHANSUTIENLUONG.Models.FormBean.NhanVienModel.XeVanTaiForm>" %>

<%@ Import Namespace="DTTB.MV2.QUANLYNHANSUTIENLUONG.Models.LinQ.NhanVien" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
          <script language="javascript" type="text/javascript">
              $(document).ready(function () {
                  selectMenu("XeVanTai-DanhSachXeVanTai");
                  $("#XeVanTai-DanhSachXeVanTai").parent().attr("class", "expanded");
              });
    </script>
      <script type="text/javascript" language="javascript" src="<%= ResolveUrl("~/Content/Scripts/NhanVien/NhanVien.js") %>"></script>
      <form id="form" action="#">
           <div class="box">
                  
         <div class="breadcrumbs">
          <ul>
            <li class="home"><a href="">Quản lý xe</a></li>
            <li><a href="">Danh sách đóng tiền cho xe </a></li>
            <li>Page</li>
          </ul>
        </div>
           <div class="headlines">
            <h2>
                <span>Danh sách đóng tiền cho xe</span>
            </h2>
               <%-- <a class="show-filter" href="#">show filter</a>--%>
        </div>
      <table class="table_outsite" style="width: 100%">
  
         
            <tr>
                <td colspan="2">
                    <table class="tab tab-drag">
                        <thead>
                            <tr class="top nodrop nodrag" style="font-weight: bold">
                                <td class="first" align="center">
                                    STT
                                </td>
                               <%-- <td>
                                </td>--%>
                                <td nowrap="nowrap">
                                    <strong>Bảng kiểm soát </strong>
                                </td>
                                 <td nowrap="nowrap">
                                    <strong>Ngày Đăng kiểm </strong>
                                </td>
                                 <td nowrap="nowrap">
                                    <strong>Ngày hết hạn bảo hiểm </strong>
                                </td>
                                <td nowrap="nowrap"> Thông báo</td>
                            </tr>
                        </thead>
                        <tbody>
                            <% 
                                int stt =  1;
                                foreach (var item in Model.ListPhaiDong)
                                {
                            %>
                            <tr>
                                <td align="center" class="first">
                                    <%= stt %>
                                </td>
                               <%-- <td>
                                    <% if (item.IsDuyet == false)
                                       { %>
                                    <input type="checkbox" name="chk" value="<%=item.Id %>" />
                                    <% } %>
                                </td>--%>
                                <td>
                                  
                                        <%=item.BangKiemSoat%>
                                    
                                </td>
                                 <td>
                                    
                                        <%=string.Format("{0:dd/MM/yyyy}",item.HanKiemDinhXe) %>
                              
                                </td>
                                 <td>
                                        <%= string.Format("{0:dd/MM/yyyy}",item.HetHanBaoHiem)%>
                                </td>
                                <td style="color: red">
                              

                                <%if (DateTime.Now.AddDays(30) >= item.HanKiemDinhXe.Value && DateTime.Now.AddDays(30) >= item.HetHanBaoHiem.Value)
                                   {
                                   %>
                                   Đóng kiểm định và đóng bảo hiểm
                                <% }  %>
                                
                                  <% else if (DateTime.Now.AddDays(30) >= item.HanKiemDinhXe.Value && DateTime.Now.AddDays(30) < item.HetHanBaoHiem.Value)
                                   {
                                   %>
                                   Đóng kiểm định 
                                <% } %>
                                     <% else if (DateTime.Now.AddDays(30) < item.HanKiemDinhXe.Value && DateTime.Now.AddDays(30) >= item.HetHanBaoHiem.Value)
                                   {
                                   %>
                                   Đóng bảo hiểm
                                <% } %>
                                </td>
                            </tr>
                            <%
                            stt++;}
                            %>
                        </tbody>
                     <%--   <tfoot>
                            <tr class="border_bottom">
                                <td class="first" style="background: #DDDDDD">
                                </td>
                                <td class="last" colspan="6" align="right" style="background: #DDDDDD; padding-right: 10px">
                                    <%
                                        PagerOptions pagerOptions = new PagerOptions();
                                        DTTB.MV2.QUANLYNHANSUTIENLUONG.BussinessDelegate.CommonDelegate.CommonDelegate CommonDelegate= new  DTTB.MV2.QUANLYNHANSUTIENLUONG.BussinessDelegate.CommonDelegate.CommonDelegate();
                                        CommonDelegate.ChangeTextPaging(pagerOptions, "idPhanTrang");
                                    %>
                                    <div>
                                        <%=Html.Pager(Model.PtXeVanTaiNgayKiemDinhPagedList, pagerOptions, new object())%></div>
                                    <%=Html.Hidden("Pagenumber", Model.Pagenumber)%>
                                </td>
                            </tr>
                        </tfoot>--%>
                    </table>
                </td>
            </tr>
        </table>
        </div>
        </form>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    
</asp:Content>
